﻿<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Email.aspx.vb" Inherits="MeoTom.Web.Blog.Email" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
    <style type="text/css" media="all">
        * { margin:0px;padding:0px; }
        body { font-family:Arial;font-size:12px; }
        .style1 { width: 182px; }
    </style>
    <script language="javascript" type="text/javascript" src="/Services/HttpCombiner.ashx?s=FileSet_JS&amp;t=text/javascript&amp;v=2"></script>
    <script language="javascript" type="text/javascript">
        function check() {
            if (gmobj("txtEmail").value == "") {
                alert("Xin vui long nhap Email cua ban !!");
                gmobj("txtEmail").focus();
                return false;
            } else if (!echeck(gmobj("txtEmail").value)) {
                alert("Email sai dinh dang !!!");
                gmobj("txtEmail").focus();
                return false;
            } else if (gmobj("txtEmail2").value == "") {
                alert("Xin vui long nhap Email gui den !!");
                gmobj("txtEmail2").focus();
                return false;
            } else if (!echeck(gmobj("txtEmail2").value)) {
                alert("Email sai dinh dang !!!");
                gmobj("txtEmail2").focus();
                return false;
            }            
            return true;
        }
        function closeMe() {
            window.close();
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <table cellpadding="4" cellspacing="6" border="0" width="100%">
        <tr>
            <td colspan="2">
                <table width="100%" cellpadding="0" cellspacing="0" border="0">
                    <tr>
                        <td><h1>Gửi Email</h1></td>
                        <td style="text-align:right;vertical-align:bottom;"><i>http://meotom.net/</i></td>
                    </tr>
                </table>
                <hr />
            </td>
        </tr>
        <tr>
            <td class="style1" valign="top">Tên của bạn:</td>
            <td>
                <asp:TextBox ID="txtName" runat="server" Width="300px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style1" valign="top">Email của bạn:</td>
            <td>
                <asp:TextBox ID="txtEmail" runat="server" Width="300px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style1" valign="top">Gửi đến (To):</td>
            <td>
                <asp:TextBox ID="txtEmail2" runat="server" Width="300px"></asp:TextBox>
            </td>
        </tr>                
        <tr>
            <td class="style1" valign="top">Đồng gửi đến (CC):</td>
            <td>
                <asp:TextBox ID="txtEmailCC" runat="server" Width="300px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style1" valign="top">Tiêu đề (Subject):</td>
            <td>
                <asp:TextBox ID="txtSubject" runat="server" Width="300px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style1" valign="top">Thông điệp (Message):</td>
            <td rowspan="2">
                <asp:TextBox ID="txtBody" runat="server" Height="106px" TextMode="MultiLine" 
                    Width="300px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td valign="bottom">
                <asp:Button ID="btnSend" runat="server" Text="Gửi" OnClientClick="return check();" />&nbsp;
                <asp:Button ID="btnClose" runat="server" Text="Bỏ qua" OnClientClick="closeMe();" />
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
